<?php

namespace app\api\interfaces;
/**
 * @name 微信基础信息
 * @sort 1
 */
interface WxInterface {

	/**
	 * @name 获取微信授权连接
	 * @post k:company_id,v:1,t:公司id,n:
	 * @sort 1
	 * @case {"appid#微信第三方appid":"wx403a8141dca36f45","url#授权地址l":"xxxxxxxxxxxxxxxx"}
	 */
	public function actionAuth();

	/**
	 * @name 获取已授权的公众号的具体信息
	 * @sort 2
	 * @post k:appid,v:1,t:公众号appid,n:
	 * @case {"id#ID": "1","accountname#公众帐号名称": "成都xxxxxx有限公司","accountnumber#微信号": "gh_d4741d4f1692","user_name#原始id": "gh_d4741d4f1692","accounttype#类型（0代表订阅号，1代表由历史老帐号升级后的订阅号，2代表服务号）": "1","accountverifytype#认证信息(0：未认证，1：已认证)": "1","func_info#权限集合": "1,15,4,7,2,3,11,6,5,8,13,9,10,12,22,23,24,26,27,33,35","status#授权状态（0：未授权，1:已授权）": "1","qrcode_url#二维码": "http://mmbiz.qpic.cn/mmbiz_jpg/lUfAtRraQNicICooq1FfN6MNGV5NIgYEnz7myDQhMSAfP3GX5zF2PHia2pPwE1kdibpERmPJuwHZuDQFS2jxqecqw/0","open_store#是否开通微信门店功能（0：未，1：已）": "0","open_scan#是否开通微信扫商品功能（0：未，1：已）": "0","open_pay#是否开通微信支付功能（0：未，1：已）": "0","open_card#是否开通微信卡券功能 （0：未，1：已）": "0","open_shake#是否开通微信摇一摇功能（0：未，1：已）": "0","mch_id#商户号":"xxxxxx","mch_key#商户号密钥":"xxxxxxxxxxxxx","accountappsecret#公众号密钥":"xxxxxxxx"}
	 */
	public function actionAuthorizer_info();

    /**
     * @name 获取<span style='color:red'>授权微信APPID</span>
     * @post k:company_id,v:1,t:公司id,n:
     * @sort 3
     * @case {"id#微信公众号数据ID": "821b61745903712d891989396fc3a6c3","appid#微信公众号appid": "wxxxxxxxxxxxxxxxxx","company_id#公司ID": "57498e4c-e30e-4699-92f7-849bb67ca5f6"}
     */
    public  function actionGet_app_id();


    /**
     * @name 编辑授权公众号信息
     * @sort 4
     * @post k:appid,v:1,t:公众号appid,n:
     * @post k:appsecret,v:1,t:授权公总号密钥,n:
     * @post k:mch_id,v:1,t:微信商户平台ID
     * @post k:mch_key,v:1,t:微信商户平台设置的支付密钥
     */
    public function actionSet_account_info();

}